<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>{if isset($SEO['title']) && !empty($SEO['title'])}{$SEO['title']}{/if}{$SEO['site_title']}</title>
<meta name="keywords" content="{$SEO['keyword']}">
<meta name="description" content="{$SEO['description']}">
<link href="{THEME_STYLE_PATH}style/css/default_new.css" type="text/css" rel="stylesheet" />
<script src="{THEME_STYLE_PATH}style/js/jquery.min.js"></script>
<script src="{THEME_STYLE_PATH}style/js/core.js"></script>
<!--script src="http://l.tbcdn.cn/apps/top/x/sdk.js?appkey=21635038"></script--><link href="{THEME_STYLE_PATH}style/css/percenter.css" type="text/css" rel="stylesheet">
<!--[if IE 6]>
<script src="/js/DD_belatedPNG.js"></script>
<script>
  DD_belatedPNG.fix('*');
</script>
<![endif]-->
<!--[if IE 6]>
<style type="text/css">
    html{overflow:hidden;}
    body{height:100%;overflow:auto;}
</style>
<![endif]-->
<script type="text/javascript">
var cash= '{$cashss}';
var maxUserE = '{$coin}';
var payList = new Array();
var jsonobj=eval(cash);
var accountID=jsonobj[0]['accountID'];
for (var i = 0; i < jsonobj.length; i++) {
	payList[i] = [jsonobj[i]['accountID'],jsonobj[i]['account'],jsonobj[i]['name']];
}
$(document).ready(function() {
	$('#showOther').click(function(){juxiangyou.component.popup.choosePayType(payList,3,340);});
	$('#cashValue').change(function(){$('#errortip').hide();});
	$('#doCash').click(function(){

		if(accountID<=0){
			juxiangyou.component.popup.prompt('请选择支付方式！');return;
		}
		var cashValue = $('#cashValue').val(); var r = /^[0-9]*[1-9][0-9]*$/;
		if(!r.test(cashValue)){$('#errortip').html('请输入正确的提现金额。').show();return;}
		if(parseInt(cashValue) > parseInt(maxUserE)){$('#errortip').html('当前的{type_change()}币不足。').show();return;}
		var tbUserPwd = $.trim($('#tbUserPwd').val());
		if(tbUserPwd.length<6){
			popup.prompt('请填写正确的登录密码！');return;
		}
		$(this).html("申请中...");$(this).attr("id","jxy_loading");
		$.ajax({
			type: "POST",
			url: "{U('Member/Account/cash_bank')}",
			dataType: "json",
			data : {"act":"cash","t":1,"accountid":accountID,'value':cashValue,'pwd':tbUserPwd},
			success: function(data){
				if(data.flag==1){
					juxiangyou.component.popup._reload = true;
					juxiangyou.component.popup.prompt(data.msg,300);
				}else{
					juxiangyou.component.popup._reload = false;
					juxiangyou.component.popup.prompt(data.msg,300);
				}
				$('#jxy_loading').html("申请提现");$('#jxy_loading').attr("id","doCash");
			}

			
		});
	});
});
function chooseDone(i){
	juxiangyou.core.func.hidePopupDiv($('#'+juxiangyou.component.popup._id));
	var chkAccount = payList[i];accountID = chkAccount[0];$("#nowAccount1").html(chkAccount[1]);$("#nowAccount2").html(chkAccount[2]); 
}
</script>
</head>

<body>
		
	{include template('header','common')}
	<div id="Mainbox">
	<!--插入侧边栏-->
		{include template('sidebar_login','common')}
		<!--插入侧边栏-->
		{include template('top_advance','common')}
		
		<!-- 左侧 -->
		{include template('member_left','common')}
		<!--右侧-->
<div class="percenter_right">
			<div class="aboutper_acc">
				<p class="a1" style="margin-bottom:15px;">申请提现</p>
				<div class="apply_info"><span class="g46">{$info[nickname]}</span>&nbsp;您好，您已经同意了本站的提现协议，可以申请提现！<br>
您的帐户当前可用{type_change()}币为<span class="ofe"><strong><?php echo number_format($info['u_coin']) ?></strong></span><img src="{THEME_STYLE_PATH}style/images/ub.gif"><br>
目前<span class="ofe">20000{type_change()}币</span>可提现<span class="ofe">2元人民币</span>，您当前最大可申请提现<span class="ofe"><strong>{$coin}</strong></span>元。<br>
<strong>提现须知：</strong><br>
<span class="re1">1.支付宝、财付通申请提现大于20元（包含20元）免手续费、小于20元每笔0.5元手续费。银行卡提现免手续费。<br>用户首次提现免手续费！</span><br>
<span class="re1">2.提现前请确认自己的收款账号无误，我们只支付一次，支付后由于收款账号问题造成的资金退回、冻结、消失本站概不负责。</span><br>

<strong>重磅推出：单笔提现金额<span class="ofe">满100元送2元、满500元送12元、满1000元送30元</span>。小积累大收入！</strong><br>
</div>	
				
				<div class="tyopt" style=" padding-top:20px;">
					<a href="{U('Member/Account/cash')}" >提现到支付宝</a>&nbsp;&nbsp;
				<a href="{U('Member/Account/ten')}" >提现到财付通</a>&nbsp;&nbsp;
				<a href="{U('Member/Account/bank')}" class="on">提现到银行卡</a></div>	
				<ul class="zfb_list">
				{if $cash[status]==1 && $cash[pay_type]=='bank'}
				<li class="title">银行卡号：<span id="nowAccount1">{$cash['account']}</span>&nbsp;&nbsp;&nbsp;<a href="javascript:void(0);" class="b40link" id="showOther">选择其他银行卡</a></li>
				<li class="title">银行账户：<span id="nowAccount2">{$cash['username']}</span></li>
					{else}
					<li class="title">您还未绑定过银行卡，请先<a href="{U('Member/Account/bind_bank')}" class="b40link">绑定银行卡</a></li>
					
					{/if}
					<li class="a1">提现金额：</li>
					<li class="a2"><select id="cashValue"><option label="100元" value="100">100元</option>
<option label="200元" value="200">200元</option>
<option label="500元" value="500">500元</option>
<option label="1000元" value="1000">1000元</option>
</select>&nbsp;&nbsp;<span class="ofe">无任何手续费！</span>&nbsp;&nbsp;<span class="re1" id="errortip" style="display:none;">当前的{type_change()}币不足</span></li>
					<li class="a1">登录密码：</li>
					<li class="a2"><input type="password" id="tbUserPwd" name="tbUserPwd">&nbsp;&nbsp;<span class="da3">(及时赚登录密码！)</span></li>
					<li class="a2" style="margin-top:3px;"><a href="javascript:void(0);" class="editbtn" id="doCash">确认提现</a></li>
				</ul>	
							</div>			
		</div>
		<div class="clear"></div>
	</div>
	<!--主体-->
	<!--尾部-->
	{include template('footer','common')}

	<!--尾部-->

</body></html>	

